package com.app.mall.service;

import com.app.mall.bean.Result;
import com.app.mall.dto.CreateGoodsParam;
import com.app.mall.dto.GetGoodsParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description:OpenFeign服务调用
 * @Author: zengtaiyang
 * @Date: 2021/4/13 16:58
 * @Version: 1.0
 */
@FeignClient(value = "goods-provider")
public interface GoodsService {

    @PostMapping("/goods/getList")
    Result getList(@RequestBody GetGoodsParam param);

    @PostMapping("/goods/insert")
    Result insert(@RequestBody CreateGoodsParam param);

}
